Monitors and Exceptions: How to Implement Java Efficiently

نویسندگان

  • Andreas Krall
  • Mark Probst
چکیده

EEcient implementation of monitors and exceptions is crucial for the performance of Java. One implementation of threads showed a factor of 30 diierence in run time on some benchmark programs. This article describes an eecient implementation of monitors for Java as used in the CACAO just-in-time compiler. With this implementation the thread overhead is less than 40% for typical application programs and can be completely eliminated for some applications. This article also gives the implementation details of the new exception handling scheme in CACAO. The new approach reduces the size of the generated native code by a half and allows null pointers to be checked by hardware. By using these techniques, the CACAO system has become the fastest JavaVM implementation for the Alpha processor.

برای دانلود رایگان متن کامل این مقاله و بیش از 32 میلیون مقاله دیگر ابتدا ثبت نام کنید

ثبت نام

اگر عضو سایت هستید لطفا وارد حساب کاربری خود شوید

منابع مشابه

Monitors and Exceptions: How to Implement Java Eeciently

EEcient implementation of monitors and exceptions is crucial for the performance of Java. One implementation of threads showed a factor of 30 diierence in run time on some benchmark programs. This article describes an eecient implementation of monitors for Java as used in the CACAO just-in-time compiler. With this implementation the thread overhead is less than 40% for typical application progr...

متن کامل

An Exception Monitoring System for Java

Exception mechanism is important for the development of robust programs to make sure that exceptions are handled appropriately at run-time. In this paper, we develop a dynamic exception monitoring system, which can trace handling and propagation of thrown exceptions in real-time. With this tool, programmers can examine exception handling process in more details and handle exceptions more effect...

متن کامل

SHRIFT System-Wide HybRid Information Flow Tracking

Using data flow tracking technology, one can observe how data flows from inputs (sources) to outputs (sinks) of a software system. It has been proposed [1] to do runtime data flow tracking at various layers simultaneously (operating system, application, data base, window manager, etc.), and connect the monitors’ observations to exploit semantic information about the layers to make analyses more...

متن کامل

Aspects of Exceptions at the Meta-Level (Position Paper)

This paper describes the design and usage of a metaobject protocol that explicitly includes support for handling exceptions. We do not propose implementing exception mechanisms anew [3, 5] or proposing a unified meta-level software architecture for exception handling [4]. To make our discussion concrete we describe an extension of the Kava [9] metaobject protocol that includes exceptions as fir...

متن کامل

Formal analysis and offline monitoring of electronic exams

More and more universities are moving toward electronic exams (in short eexams). This migration exposes exams to additional threats, which may come from the use of the information and communication technology. In this paper, we identify and define several security properties for e-exam systems. Then, we show how to use these properties in two complementary approaches: modelchecking and monitori...

متن کامل

ذخیره در منابع من


  با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید

عنوان ژورنال:
  • Concurrency - Practice and Experience

دوره 10  شماره 

صفحات  -

تاریخ انتشار 1998